package cn.micai.base.string;

/**
 * 描述：
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/11 10:38
 */
public class StringContentEqualsExample {

    public static void main(String [] args) {
        String str1 = "java2blog";
        String str2 = "Hello world from java2blog";
        String str3 = "JAVA2BLOG";
        StringBuilder sb = new StringBuilder("java2blog");
        System.out.println(str1.contentEquals(sb));
        System.out.println(str2.contentEquals(sb));
        System.out.println(str3.contentEquals(sb));
    }
}
